CPP Library

cheat sheet...

===============================================
/*
Remark block
*/

#include <iostream>
#include <iomanip>
#include <cmath> // Needed for the pow function

using namespace std;

int main()
{
..double number, ans;
..cout << "Enter a number: ";
..cin >> number;
..ans = number /5;
..cout << "The answer is: "<< ans << endl;
..system("pause");
..return 0;
}
================================================
cout << fixed << showpoint << setprecision(2);

fixed - do not use scientific notation
showpoint - show decmial point even on integers
setprecision - show exactly (n) after the decimal point
setw(8) - tells system to allow (n) spaces for the field output

cout << "Final Balance: $" << setw(8) << finalBalance << endl;
================================================
cout << "Press any key to continue: ";
cin.sync();
cin.get();
================================================